package com.xiaoxx.model.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoxx.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 基础表--系统用户
 * </p>
 *
 * @author HX
 * @since 2023-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_sys_user")
@ApiModel(value = "AdminUser对象", description = "基础表--系统用户")
public class SysUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账号/用户名")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "性别 (0-未知 1-男 2-女)")
    @TableField("gender")
    private Integer gender;

    @ApiModelProperty(value = "是否禁用 (0-否，1-是)")
    @TableField("disable")
    private Integer disable;

    @ApiModelProperty(value = "头像")
    @TableField("head_pic")
    private String headPic;

    @ApiModelProperty(value = "手机号(第二账号)")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "姓名")
    @TableField("full_name")
    private String fullName;

    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    @ApiModelProperty(value = "年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty(value = "注册时间")
    @TableField("reg_time")
    private LocalDateTime regTime;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "GiteeID")
    @TableField("gitee_id")
    private String giteeId;


}
